home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / wla_020_3.0 / wla_file_formats.txt < prev    next >
Text File  |  2000-02-28  |  2KB  |  120 lines

  1.  
  2.  
  3. WLA object file format "WLA4"
  4.  
  5.  
  6. header:
  7.  
  8. bytes   description
  9.  
  10.   4     format information,
  11.         "WLA4" - WLA object file version 4 (18-Feb-2000)
  12.   1     rom name status (0 = no name, 1 = name)
  13.  16     rom name
  14.   1     rom size
  15.   1     ram size
  16.   1     empty fill
  17.   1     cartridge type
  18.   1     licenseecode old / new (0 = old, 1 = new)
  19.   1     licenseecodeold
  20.   1     licenseecodenew c1
  21.   1     licenseecodenew c2
  22.   1     compute checksum (0 = no, 1 = yes)
  23.   1     compute complement check (0 = no, 1 = yes)
  24.  
  25. exported defines:
  26.  
  27.   4     amount of defines (int)
  28.   ...
  29.   n     define n (0 terminated)
  30.   4     value
  31.   ...
  32.  
  33. labels:
  34.  
  35.   4     amount of labels (int)
  36.   ...
  37.   n     label a (0 terminated)
  38.   1     section (0 = no section, 1 - 255 = section id)
  39.   4     address (int)
  40.   ...
  41.  
  42. outside references:
  43.  
  44.   4     amount of references (int)
  45.   ...
  46.   n     label b (0 terminated)
  47.   1     type (0 = direct, 1 = relative)
  48.   1     section (0 = no section, 1 - 255 = section id)
  49.   4     address (int) (if in section, this is relative to the
  50.                        beginning of the section)
  51.   ...
  52.  
  53. data area:
  54.  
  55.   1     type (0 = data block, 1 = section)
  56.  
  57. data block:
  58.  
  59.   4     address (int)
  60.   4     amount of bytes (int)
  61.   n     bytes
  62.  
  63. section:
  64.  
  65.   n     name (terminated with 0 (if free) or 1 (if forced)
  66.   4     starting address (int)
  67.   4     amount of bytes (int)
  68.   n     bytes
  69.  
  70.  
  71.  
  72.  
  73.  
  74. WLA library file format "WLAN"
  75.  
  76.  
  77. header:
  78.  
  79. bytes   description
  80.  
  81.   4     format information,
  82.         "WLAN" - WLA library file version 3 (18-Feb-2000)
  83.  
  84. exported defines:
  85.  
  86.   4     amount of defines (int)
  87.   ...
  88.   n     define n (0 terminated)
  89.   4     value
  90.   ...
  91.  
  92. labels:
  93.  
  94.   4     amount of labels (int)
  95.   ...
  96.   n     label a (0 terminated)
  97.   1     section (0 = no section, 1 - 255 = section id)
  98.   4     address (int)
  99.   ...
  100.  
  101. outside references:
  102.  
  103.   4     amount of references (int)
  104.   ...
  105.   n     label b (0 terminated)
  106.   1     type (0 = direct, 1 = relative)
  107.   1     section (0 = no section, 1 - 255 = section id)
  108.   4     address (int) (if in section, this is relative to the
  109.                        beginning of the section)
  110.   ...
  111.  
  112. sections:
  113.  
  114.   ...
  115.   n     name (terminated with 0 (if free) or 1 (if forced)
  116.   4     starting address for section installation (int)
  117.   4     amount of bytes (int)
  118.   n     bytes
  119.   ...
  120.